﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Depo.Aksesuar
{
    public partial class AksUsable : XForm
    {
        public AksUsable()
        {
            InitializeComponent();
        }

        private void AksUsable_Load(object sender, EventArgs e)
        {
            
            gvUsable.Init("GetAksUsable", 0);
            gvUsable.MakeReadOnly();
            gvUsable.BestFitColumns();
            gvUsable.AddSummary();
        }

        private void chkAll_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (chkAll.Checked)
                gvUsable.RefreshDataSource(true, "GetAksUsable", 1);
            else
                gvUsable.RefreshDataSource(true, "GetAksUsable", 0);
        }
    }
}